package com.ingsing.tourism.service.Impl;

import com.ingsing.tourism.entity.User;
import com.ingsing.tourism.entity.UserInfo;
import com.ingsing.tourism.mapper.IUserInfoMapper;
import com.ingsing.tourism.service.IUserInfoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;


/**
 * @author: NALHOUG
 * @time: 2019/10/18 16:09
 * @explain
 */
@Service
public class UserInfoServiceImpl implements IUserInfoService {
    @Resource
    private IUserInfoMapper iUserInfoMapper;

    @Override
    public UserInfo checkUserInfo(Integer userId) {
        return iUserInfoMapper.selectByPrimaryKey(userId);
    }

    @Override
    public int newUserInfo(UserInfo userInfo) {
        return iUserInfoMapper.insertSelective(userInfo);
    }
    @Override
    public int updateUserInfo(User user) {
        return 0;
    }
}
